package com.ruoyi.appuser.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 会员记录对象 appuser_vip_record
 *
 * @author ruoyi
 * @date 2024-01-14
 */
@TableName("appuser_vip_record")
public class AppuserVipRecord implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String appuserId;

    /** 码库id */
    @Excel(name = "码库id")
    private String codeBaseId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setAppuserId(String appuserId)
    {
        this.appuserId = appuserId;
    }

    public String getAppuserId()
    {
        return appuserId;
    }
    public void setCodeBaseId(String codeBaseId)
    {
        this.codeBaseId = codeBaseId;
    }

    public String getCodeBaseId()
    {
        return codeBaseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appuserId", getAppuserId())
            .append("codeBaseId", getCodeBaseId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
